package com.saas.intf;

import com.saas.biz.commen.CommMethodMgr;
import com.saas.sys.exp.SaasApplicationException;
import com.saas.sys.log.Logger;
import com.zhike.b2b.data.Attachinfo;

import java.util.ArrayList;
import java.util.HashMap;

public class AttachIntf
{
  Logger log = new Logger(this);
  CommMethodMgr comm = new CommMethodMgr();
  Attachinfo attachMgr = new Attachinfo();

  public String getFilePathInfo(String paramString)
    throws SaasApplicationException
  {
    ArrayList localArrayList = new ArrayList();
    localArrayList = this.attachMgr.getFilePath(paramString);
    String str1 = "";
    String str2 = "";
    if (localArrayList != null)
      for (int i = 0; i < localArrayList.size(); i++)
      {
        HashMap localHashMap = (HashMap)localArrayList.get(i);
        if (localHashMap.get("file_path") != null)
        {
          str2 = localHashMap.get("file_path").toString();
          str1 = str1 + "<img src=" + str2 + " width=50 height=40 style=\"filter:alpha(opacity=70)\" onclick=changeImg(this) onMouseOver=makevisible(this,0) onMouseOut=makevisible(this,1) style=\"cursor:hand;\">&nbsp;";
        }
        if (i == 4)
          break;
      }
    return str1;
  }
}

